<?php

class Forum_Helper_Date
{
	private $manth = Array
	(
		'1'=>'січ',
		'2'=>'лют',
		'3'=>'бер',
		'4'=>'кві',
		'5'=>'тра',
		'6'=>'чер',
		'7'=>'лип',
		'8'=>'серп',
		'9'=>'вер',
		'10'=>'жовт',
		'11'=>'лист',
		'12'=>'груд'	
	);
	
	/**
     * Singleton instance
     * @var Forum_Helper_Date
     */
    private static $_instance = null;
    
    /**
     * Retrieve instance of Forum_Helper_Date
     * 
     * @return Forum_Helper_Date
     */
    public static function getInstance()
    {
        if (null === self::$_instance) {
            self::$_instance = new self();
        }
        return self::$_instance;
    }
	
	public function format($uix, $class = 'date'){
		$m = $this->manth[date("n", $uix)];
		return "<span class='{$class}'>".date("d $m Y, H:i:s", $uix)."</span>";
	}
	
    
}

?>